<?php
class Application_Model_Schema_QueueObject {
	protected $_id;
	protected $_queue;
	protected $_gameObject;

	public function __set($name, $value) {
		$method = 'set' . $name;
		if(!method_exists($this, $method)) {
			throw new Exception('Set Invalid QueueResource Property');
		}
		$this->$method($value);
	}

	public function __get($name) {
		$method = 'get' . $name;
		if(!method_exists($this, $method)) {
			throw new Exception('Get Invalid QueueResource Property');
		}
		return $this->$method();
	}

	public function setId($id) {
		$this->_id = (int) $id;
		return $this;
	}

	public function getId() {
		return $this->_id;
	}	

	public function setQueue($queue) {
		$this->_queue = $queue;
		return $this;
	}

	public function getQueue() {
		return $this->_queue;
	}	

	public function setGameObject($gameObject) {
		$this->_gameObject = $gameObject;
		return $this;
	}

	public function getGameObject() {
		return $this->_gameObject;
	}		
}
?>